package com.itheima.abstractandinterface;

public class Test {
    public static void main(String[] args) {
        Dog d = new Dog("xiaohei",12);
        Rabbit r = new Rabbit("xiaobai",2);
        Frog f = new Frog("xiaoqingwa",1);


        System.out.println(d.getName());
        d.eat();
        d.swim();
    }
}
